package com.datasure.cloudsure.redis.bean;

import org.springframework.data.redis.core.RedisTemplate;

import java.util.Map;

public class RedisTemplatesBean {
    private Map<String, RedisTemplate<String, Object>> allRedisTemplates;

    public RedisTemplate<String, Object> getByDataSourceName(String dsName) {
        return allRedisTemplates.get(dsName);
    }

    public Map<String, RedisTemplate<String, Object>> getAllRedisTemplates() {
        return allRedisTemplates;
    }

    public void setAllRedisTemplates(Map<String, RedisTemplate<String, Object>> allRedisTemplates) {
        this.allRedisTemplates = allRedisTemplates;
    }
}
